<?php
// +----------------------------------------------------------------------
// | 票付通演出类相关页面单入口文件
// +----------------------------------------------------------------------
// | Author: TongBC <501468940@qq.com>
// +----------------------------------------------------------------------
// | Date  : 2015/06/10
// +----------------------------------------------------------------------
// | www.12301.cc/module/pft_show/venues.php
// +----------------------------------------------------------------------
include_once '/var/www/html/new/d/common/header.html';
include_once '/var/www/html/new/d/common/left.html';
include_once '/var/www/html/new/d/common/func.inc.php';
include_once '/var/www/html/new/d/class/Dist.class.php';


$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));

$did  = $_REQUEST["id"] + 0;
$dist = new Dist();
$m_info = $dist->getInfo($did);
if($m_info['province'] !=0){
    $city_data = include '/var/www/html/wx/api/data/city.php';
    foreach ($city_data as $k => $v) {
        if($k == $m_info['province']){
            $m_info['province'] = $v['province'];
            if($m_info['city']!=0){
                $sql = "select area_name from uu_area where area_id={$m_info['city']} limit 1";
                $GLOBALS['le']->query($sql);
                $GLOBALS['le']->fetch_assoc();
                $m_info['city'] = $GLOBALS['le']->f('area_name');
            }else{
                $m_info['city'] = '';
            }
            break;
        }
    }
}else{
    $m_info['province'] =  $m_info['city'] = '';
}

// 剩余金额
$simxml   = $s->PFT_Member_Fund($did,0);
$simxml_o = simplexml_load_string($simxml);
$m_info['money'] = (float)$simxml_o->Rec->UUamoney;
// echo '<pre/>';
// print_r($m_info);
$accept_txt = array(
	'全部接收','仅平台通知','仅供应商通知',
);
include_once '/var/www/html/new/d/tpl/examine.tpl';
include_once '/var/www/html/new/d/common/footer.html';

